//提交修改数据
$('#modifyForm').on('submit', function () {
    //表单数据
    let formData = $(this).serialize()
    //发送修改密码请求
    $.ajax({
        type: 'put',
        url: '/users/password',
        data: formData,
        success: function () {
            location.href = 'login.html'
        }
    })
    return false
})